package com.ecoolex.hotel.saas.enums;

import com.ecoolex.framework.common.EnumInterface;
import com.ecoolex.framework.common.util.Check;

public enum PresaleCouponOrderAfterSalesRecordType implements EnumInterface<PresaleCouponOrderAfterSalesRecordType, Integer> {
	APPLY_REFUND(1, "客户发起退款"),
	AGREE_REFUND(2, "商家同意退款"),
	REFUSE_REFUND(3, "商家拒绝退款"),
	CANCEL(10,"客户撤销售后"),
    MERCHANT_REFUND(11,"商家主动退款");

	private int real;

	private String describe;

	private PresaleCouponOrderAfterSalesRecordType(int real, String describe) {
		this.real = real;
		this.describe = describe;
	}

	@Override
	public Integer real() {
		return real;
	}

	@Override
	public String describe() {
		return describe;
	}

	public static PresaleCouponOrderAfterSalesRecordType realValueOf(Integer real) {
		if (Check.notNull(real)) {
			for (PresaleCouponOrderAfterSalesRecordType v : values()) {
				if (v.real().equals(real)) {
					return v;
				}
			}
		}
		return null;
	}
}
